package com.zxl.common.model.bo.meber;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author zxw
 * @date 2023/4/4
 */
@Data
public class MemberUpdateBo {
    @ApiModelProperty(value = "id", hidden = true)
    private Integer memberId;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("头像地址")
    private String avatarUrl;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("联系人")
    private String contacts;

    @ApiModelProperty("联系人电话")
    @NotBlank(message = "联系人电话不能为空")
    @Length(min = 11, max = 11, message = "手机号只能为11位")
    private String contactPhone;
}
